<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of profile
 *
 * @author Bui Van Thien
 */
class Model_Profile extends \Orm\Model
{

    protected static $_properties = array(
        'id',
        'users_id',
        'name',
        'gender',
        'address',
        'phone',
        'birthday',
        'avatar',
        'updated'
    );
    
    protected static $_observer = array(
        'Orm\Observer_UpdatedAt'=>array(
            'events'=>array('before_save'),
            'property'=>'updated',
            'mysql_timestamp'=>true
        )
    );
    protected static  $_table_name = 'tb_profiles';
    
}
